package com.itheima.day06;

import java.util.Random;

//4. 生成10个30-50之间的随机数, 然后打印到控制台上.
public class Demo04 {
    public static void main(String[] args) {
        //定义一个随机变量的对象
        Random random = new Random();
        int[] a = new int[]{10, 10, 10,};
        int b[] = new int[]{10, 10, 10,};
        int[] a2 = {10, 10, 10,};
        int b3[] = {10, 10, 10,};
        //for循环输出30-50之间是数字
        for (int i = 0; i < 10; i++) {
            //打印输出
            System.out.println(random.nextInt(21) + 30);
        }
    }
}
